<?php
/**
 * @package WordPress
 * @subpackage Freshine
 * @since Freshine 1.1.1
 */
if (!function_exists('freshine')) {
	echo 'You need Freshine theme framework to use this theme, <a href="http://yoarts.com/freshine">Download here</a>';
	exit;
}
?><!DOCTYPE html>

<!-- BEGIN html -->
<html <?php language_attributes(); ?>>

<!-- BEGIN head -->
<head>

	<!-- Meta Tags -->
	<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>" />
	<title><?php f9_custom_title(); ?></title>
	<link rel="profile" href="http://gmpg.org/xfn/11" />
	<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
	<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_bloginfo( 'stylesheet_directory' )."/typography.css"; ?>" />
	<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_bloginfo( 'stylesheet_directory' )."/custom.css"; ?>" />
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
	<?php wp_head(); ?>

<!-- END head -->
</head>

<!-- BEGIN body -->
<body <?php body_class(); ?>>

<!-- BEGIN #f9-wrapper -->
<div id="f9-wrapper">
<?php get_sidebar( 'header-top' );?>
	<!-- BEGIN #f9-header -->
	<div id="f9-header" class="wrap">
		<div class="main clearfix">
			<div id="f9-logo">
				<?php f9_custom_logo(); ?>
				<h2 id="description"><?php bloginfo( 'description' );?></h2>
			</div>
<?php get_sidebar( 'header' );?>
<?php if ((!(get_option('f9_main_menu')))||(get_option('f9_main_menu')==FALSE)) : ?>
			<div id="f9-mainnav">
				<?php wp_nav_menu(array('theme_location' => 'primary', 'menu_class' => 'menu sf-menu' )); ?>
			</div>
<?php endif; ?>
		</div>
	<!-- END #f9-header -->
	</div>

<?php if(is_home()) :?> 
	<!-- BEGIN #f9-slide -->
	<div id="f9-slide" class="wrap">
		<div class="main clearfix">
		
<?php if ( current_theme_supports('f9_slide') ) f9_slide(); ?>

		</div>
	</div>
	<!-- END #f9-slide -->
	
	<!-- BEGIN #f9-sidebar-top -->
	<?php get_sidebar( 'top' );?>
	<!-- END #f9-sidebar-top -->
<?php endif;?>